package cn.org.qary.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "happy_buy.order")
public class Order {

  @Id
  @KeySql(useGeneratedKeys = true)
  private String id;

  private String datetime;

  private Integer total;

  private String status;

  @Column(name = "user_id")
  private Integer userId;

  @Column(name = "address_info_id")
  private Integer addressInfoId;


}
